<li class="odd" id="header_reminder_menu">
    <a class="dropdown-toggle" data-toggle="dropdown" data-target="#">
        <span class="count"><?php echo $reminder_count; ?></span>
        <span class="head-icon iconfa-bell iconfa-3x"></span>
        <span class="headmenu-label">Today Reminders</span>
    </a>
    <?php
        if($reminder_count > 0){
    ?>
        <ul class="dropdown-menu">
            <li class="nav-header">Reminders</li>
            <?php
                $ct = 0;
                foreach($reminder_data as $k => $arr){
                    if($ct == 5){// Display only 5
                        break;
                    }
            ?>
                    <li><a href="javascript:void(0);"><span class="iconfa-bell"></span> <?php echo $arr['name']; ?><strong> Service Reminder</strong> <!--<small class="muted"> - 1 hours ago</small>--></a></li>
            <?php
                    $ct = $ct + 1;
                }
            ?>

            <!--<li><a href="#"><span class="iconfa-bell"></span> Mrs. Dean <strong>Service Reminder</strong> <small class="muted"> - 2 days ago</small></a></li>
            <li><a href="#"><span class="iconfa-bell"></span> Mr. Evan <strong>Service Reminder</strong> <small class="muted"> - in 3 min</small></a></li>
            <li><a href="#"><span class="iconfa-bell"></span> Oil Company <strong>Service Reminder</strong> <small class="muted"> - in 1 hour</small></a></li>
            <li><a href="#"><span class="iconfa-bell"></span> Chase Ltd <strong>Service Reminder</strong> <small class="muted"> - 1 week ago</small></a></li>-->
            <li class="viewmore"><a href="<?php echo $this->Html->url(array('controller' => 'ServiceAdviser', 'action' => 'service_appointments')); ?>">View More Reminders</a></li>
        </ul>
    <?php
        }
    ?>
</li>